<?php
if (!empty($customedateSessionForbatch)) {
	$customeDaysSession = $customedateSessionForbatch;
	$scheduletype = 'Date';
} else {
	$customeDaysSession = $customeDaysSessionForbatch;
	$scheduletype = 'Day';
}

?>
<span class="classvenueView"><h2><?php echo 'Batche ' . $scheduletype . '  Sessions(' . count($customeDaysSession) . ')'; ?></h2></span>
<div class="viewTable addmarginB20">
        <div class="detail scroll-item">
         <div class="rowG th">
        <div class="col col3"><div class="padding"><h5><?php echo $scheduletype ?></h5></div></div>
        <div class="col col3"><div class="padding"><h5>Start Time</h5></div></div>
        <div class="col col3"><div class="padding"><h5>End  Time</h5></div></div>
        <div class="last col3"><div class="padding"><h5>Flexible</h5></div></div>
 </div>
	  <div class="rowG tr">
    <?php foreach ($customeDaysSession as $customeDayValue) { ?>
        <div class="col col3"><div class="padding"><p><?php echo ($scheduletype == 'Day') ? Courses::getSchedulename($customeDayValue['schedule_id']) : $customeDayValue['date']; ?></p></div></div> 
        <div class="col col3"><div class="padding"><p><?php echo $customeDayValue['time_from']; ?></p></div></div>
        <div class="col col3"><div class="padding"><p><?php echo $customeDayValue['time_to']; ?></p></div></div>
        <div class="col col3"><div class="padding"><p><?php echo ($customeDayValue['is_flexible'] == '') ? 'No' : 'Yes'; ?></p></div></div>
    <?php } ?>
	</div>
</div>
</div>

